package com.lxk.client;

import com.lxk.client.biz.PersonBiz;
import com.lxk.client.biz.PersonServiceClient;
import com.lxk.spi.inface.sex;
import org.apache.thrift.TException;

public class ThriftClient {

    public static void main(String[] args) throws TException {
        PersonServiceClient client = new PersonServiceClient();
        client.init("127.0.0.1",8099);
        PersonBiz personBiz = new PersonBiz();
        personBiz.doBiz("name",29, sex.MALE,client);
        client.free();
    }

}
